package com.sc.javaee.mapper;

import com.sc.javaee.pojo.UserEnterprise;
import org.apache.ibatis.annotations.Param;

public interface UserEnterpriseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserEnterprise record);

    int insertSelective(UserEnterprise record);

    UserEnterprise selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserEnterprise record);

    int updateByPrimaryKey(UserEnterprise record);

    Integer selectByUserId(Integer userId);

    int updateUserEnterprise(@Param("userId") Integer userId, @Param("enterpriseId") Integer enterpriseId);
    int insertUserEnterprise(@Param("userId") Integer userId, @Param("enterpriseId") Integer enterpriseId);
}